package com.atguigu.gmall.order.mapper;

import com.atguigu.gmall.model.order.OrderInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {

    /**
     * 修改订单状态的通用方法
     * @param orderId
     * @param orderStatus
     * @param processStatus
     */
    void updateOrderStatus(
            @Param("orderId") Long orderId,
            @Param("orderStatus") String orderStatus,
            @Param("processStatus") String processStatus);

}
